﻿using Gx.Bll.Manage;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Gx.ColdWarehouseErp.SchedulerHost
{
    internal class Program
    {
        static async Task Main(string[] args)
        {
            PerformScheduledTask();
        }

        /// <summary>
        /// 零仓计费
        /// </summary>
        static void PerformScheduledTask()
        {
            Console.WriteLine("开始任务: " + DateTime.Now);
            // 在这里添加要定时执行的任务逻辑
            try
            {
                LKZeroWarehouseContractDetailBll bll = new LKZeroWarehouseContractDetailBll();
                bll.ZeroWarehouseContractDetailSchedule();
            }
            catch (Exception ex)
            {
                LoggerHelper.WriteErrorLog("零仓计费异常：" + ex.Message);
                Console.WriteLine("零仓计费异常：" + ex.Message);
            }
        }
    }
}
